<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TreeSource.aspx.cs" Inherits="TreeSource" %>
<%@ Register Assembly="GridControl" Namespace="GridControl" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: Consolas, "Courier New", Courier, Monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}

.csharpcode pre { margin: 0em; }

.csharpcode .rem { color: #008000; }

.csharpcode .kwrd { color: #0000ff; }

.csharpcode .str { color: #006080; }

.csharpcode .op { color: #0000c0; }

.csharpcode .preproc { color: #cc6633; }

.csharpcode .asp { background-color: #ffff00; }

.csharpcode .html { color: #800000; }

.csharpcode .attr { color: #ff0000; }

.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}

.csharpcode .lnum { color: #606060; }

.source_code{
    position:relative;
    left:450px;
    top:-400PX;
    height:400px;
    width:500px; 
    border-right: black thin solid;
    border-top: black thin solid; 
    border-left: black thin solid; 
    border-bottom: black thin solid; 
    overflow:auto
}
</style>
 
</head>
<body>
    <form id="form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true">
        </asp:ScriptManager>
    <div>
    Click on a file name to see its source <br />
    <div style="width:400px;height:400px; overflow:auto" >
       
     <cc1:TreePane ID="TreeFile" runat="server" AutoPostBack="true"  Height="300px"  Width="400px" OnNodeClicked="TreeFile_NodeClicked"  ></cc1:TreePane>
      
    </div>
         <asp:Panel ID="Panel1" CssClass="source_code"
                                           runat="server">
                <asp:UpdatePanel ID="UpdatePanel1"
                                 UpdateMode="Conditional"
                                 runat="server">
                    <ContentTemplate>
                        <%= sourceHtml%>
                         
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="TreeFile" EventName="NodeClicked" />
                    </Triggers>
                </asp:UpdatePanel>
            </asp:Panel>
 

           <cc1:ModalUpdateProgress ID="mdl" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
           <ProgressTemplate>
            Loading...
           </ProgressTemplate>
           </cc1:ModalUpdateProgress>
    </div>
    </form>
</body>
</html>
